package org.itboys.core.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Auther: 罗尧坤
 * Date: 2018/8/1
 * Description: 收货地址实体类
 */

@Entity(value = "SundayAddress", noClassnameStored = true)
public class SundayAddress extends BaseMongoEntity {

    private String  lable;//地址标签, 比如家, 公司
    private Long    memberId;//收货人id
    private String  receiveName;//收货人
    private String  receiveMobile;//收货电话
    private Long    provinceId;//省ID
    private String  provinceName;//省名称
    private Long    cityId;//市Id
    private String  cityName;//市名称
    private Long    districtId;//区ID
    private String  districtName;//区名称
    private Long    streetId;//街道id
    private String  streetName;//街道名称
    private String  roadName;//道路名称
    private Long    villageId;//小区id
    private String  villageName;//小区名称
    private String  detailedAddress;//详细地址, 如楼栋, 单元
    private Integer isDefault;//是否默认.0否，1是。默认地址不能删除

    public SundayAddress() {
    }

    public SundayAddress(
            String  lable,
            Long    memberId,
            String  receiveName,
            String  receiveMobile,
            Long    provinceId,
            String  provinceName,
            Long    cityId,
            String  cityName,
            Long    districtId,
            String  districtName,
            Long    streetId,
            String  streetName,
            String  roadName,
            Long    villageId,
            String  villageName,
            String  detailedAddress,
            Integer isDefault
    ) {
        this.lable              = lable;
        this.memberId           = memberId;
        this.receiveName        = receiveName;
        this.receiveMobile      = receiveMobile;
        this.provinceId         = provinceId;
        this.provinceName       = provinceName;
        this.cityId             = cityId;
        this.cityName           = cityName;
        this.districtId         = districtId;
        this.districtName       = districtName;
        this.streetId           = streetId;
        this.streetName         = streetName;
        this.roadName           = roadName;
        this.villageId          = villageId;
        this.villageName        = villageName;
        this.detailedAddress    = detailedAddress;
        this.isDefault          = isDefault;
    }

    public String getLable() {
        return lable;
    }

    public void setLable(String lable) {
        this.lable = lable;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getReceiveMobile() {
        return receiveMobile;
    }

    public void setReceiveMobile(String receiveMobile) {
        this.receiveMobile = receiveMobile;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public Long getStreetId() {
        return streetId;
    }

    public void setStreetId(Long streetId) {
        this.streetId = streetId;
    }

    public String getStreetName() {
        return streetName;
    }

    public void setStreetName(String streetName) {
        this.streetName = streetName;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public Long getVillageId() {
        return villageId;
    }

    public void setVillageId(Long villageId) {
        this.villageId = villageId;
    }

    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }
}
